Microsoft® Visual Basic® Scripting Edition
Asc Function
Language Reference

See Also


Description
Returns the ANSI character code corresponding to the first letter in a string.

Syntax
Asc(string)
The string argument is any valid string expression. If the string contains no characters, a run-time error occurs.

Remarks


Note Another function (AscB) is provided for use with byte data contained in a string. Instead of returning the character code for the first character, AscB returns the first byte. AscW is provided for 32-bit platforms that use Unicode characters. It returns the Unicode (wide) character code, thereby avoiding the conversion from Unicode to ANSI.


© 1997 Microsoft Corporation. All rights reserved. Legal Notices.